/* mobile.css - UPDATED VERSION WITH ALL FIXES */
@media screen and (max-width: 768px) {
    
    
    /* ===== HAMBURGER MENU FIX ===== */
    .hamburger-menu {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 30px !important;
        height: 22px !important;
        cursor: pointer !important;
        z-index: 1002 !important;
        position: relative !important;
    }
    
    .hamburger-menu span {
        display: block !important;
        width: 100% !important;
        height: 3px !important;
        background-color: white !important;
        border-radius: 3px !important;
        transition: all 0.3s ease !important;
    }
    
    /* Hamburger animation when active */
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px) !important;
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px) !important;
    }
    
    /* ===== CURRENCY SELECTOR - MOVED SLIGHTLY DOWN ===== */
    #currency-selector {
        top: 80px !important; /* Changed from 70px to 80px */
        bottom: auto !important;
        right: 10px !important;
        z-index: 1001 !important;
    }
    
    #currency-btn {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Make currency panel smaller */
    #currency-panel {
        width: 180px !important;
        right: 0 !important;
        font-size: 0.85rem !important;
    }
    
    .currency-option {
        padding: 0.5rem 0.8rem !important;
    }
    
    .currency-flag {
        width: 20px !important;
        height: 20px !important;
    }
    
    /* ===== HIDE GIANT COIN ON MOBILE ===== */
    .hero-text-area img[alt="Giant GetItX Coin"],
    .hero-text-area .floaty-animation.coin-only,
    img.floaty-animation.coin-only {
        display: none !important;
    }
    
    /* ===== HERO SECTION - REDESIGNED ===== */
    .hero-text-area {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .hero-text-area h1 {
        font-size: 1.8rem !important;
        margin-bottom: 10px !important;
        order: 1 !important;
    }
    
    .hero-text-area p {
        font-size: 1rem !important;
        margin-bottom: 15px !important;
        max-width: 90% !important;
        order: 2 !important;
    }
    
    .hero-buttons {
        order: 3 !important;
        margin-bottom: 15px !important;
    }
    
    /* Move GIF beside the paragraph */
    .hero-image-gif {
        order: 4 !important;
        margin-top: 0 !important;
    }
    
    .hero-image-gif img {
        max-width: 180px !important; /* Reduced size */
        height: auto !important;
        padding-left: 0 !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    /* Adjust hero content wrapper for better layout */
    .hero-content-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    /* ===== 3 PRODUCTS PER ROW ===== */
    .row.row-cols-1.row-cols-sm-2.row-cols-md-3 {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-right: -3px !important;
        margin-left: -3px !important;
    }
    
    .row.row-cols-1.row-cols-sm-2.row-cols-md-3 > .col {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
        padding-right: 3px !important;
        padding-left: 3px !important;
        margin-bottom: 10px !important;
    }
    
    .product-card {
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .product-card .card-content {
        height: 140px !important;
    }
    
    .product-card .coin-name-text {
        font-size: 0.7rem !important;
        height: 35px !important;
    }
    
    .product-card .sliding-background-area {
        height: 35px !important;
    }
    
    .product-card .buy-coins {
        padding: 3px 8px !important;
        font-size: 0.65rem !important;
    }
    
    .product-card:hover .sliding-background-area {
        height: 70px !important;
    }
    
    .product-card:hover .coin-name-text {
        transform: translateY(-35px) !important;
    }
    
    /* ===== 3 STEPS TITLE - BLUE ===== */
    .major h2 {
        color: #0648ac !important; /* Changed from white to blue */
        font-size: 1.8rem !important;
    }
    
    .major {
        background: transparent !important; /* Removed blue background */
    }
    
    .major-item p,
    .major-grid .major-item p,
    .major p {
        color: #333333 !important;
        background: transparent !important;
        font-weight: 500 !important;
        font-size: 1rem !important;
    }
    
    .major h2::after {
        background: linear-gradient(to right, #0648ac 0%, #0648ac 50%, transparent 100%) !important;
    }
    
    /* ===== REDUCE SPACE BETWEEN PRODUCTS AND CONNECT SECTION ===== */
    #coin-shop {
        margin-bottom: 0 !important; /* Remove bottom margin */
        padding-bottom: 30px !important; /* Reduce padding */
    }
    
    .connect {
        margin-top: 0 !important; /* Remove top margin */
        padding: 30px 0 !important; /* Reduce padding */
    }
    
    /* ===== CONNECT SECTION - REDUCED SIZE ===== */
    .connect {
        height: auto !important;
        min-height: auto !important;
    }
    
    .connect-text h2 {
        font-size: 1.4rem !important; /* Reduced from 1.8rem */
        white-space: normal !important;
        margin-bottom: 10px !important;
    }
    
    .connect-text p {
        font-size: 0.95rem !important; /* Reduced from original */
        line-height: 1.4 !important;
        margin-bottom: 15px !important;
    }
    
    .connect-btn.yellow-btn {
        padding: 12px 20px !important; /* Smaller button */
        font-size: 0.95rem !important;
    }
    
    .connect-img img {
        max-width: 180px !important; /* Reduced from 250px */
        padding-top: 0 !important; /* Remove top padding */
    }
    
    /* ===== FOOTER TITLES ===== */
    .footer-links h4,
    .footer-shop h4,
    .footer-contact h4 {
        font-family: 'Inter', 'Montserrat', sans-serif !important;
        font-weight: 600 !important;
        font-size: 18px !important;
    }
    
    /* Navigation */
    .nav-bar {
        padding: 12px 20px !important;
        justify-content: space-between !important;
        height: auto !important;
    }
    
    .nav-bar .logo-img {
        height: 40px !important;
        margin-left: 0 !important;
    }
    
    .nav-content-wrapper {
        display: none !important;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(6, 72, 172, 0.98);
        flex-direction: column;
        padding: 20px 0;
        margin: 0 !important;
        border-radius: 0;
        z-index: 1000;
    }
    
    .nav-content-wrapper.active {
        display: flex !important;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-links a,
    .nav-links .nav-link {
        width: 90%;
        margin: 5px auto;
        padding: 12px 20px !important;
        color: white !important;
    }
    
    .nav-bar-extra {
        width: 90%;
        margin: 15px auto;
        background-color: #e2992c;
        border-radius: 30px;
        justify-content: center;
    }
    
    /* Hero section */
    .hero {
        height: auto !important;
        min-height: auto !important; /* Changed from 100vh */
        padding-top: 80px;
        padding-bottom: 20px; /* Reduced padding */
        background-attachment: scroll !important;
    }
    
    /* Connect section background */
    .connect::before {
        opacity: 0.3 !important; /* Lighter background */
    }
    
    /* Carousel */
    .carousel-container {
        height: 200px !important;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center !important;
    }
    
    .footer-logo,
    .footer-links,
    .footer-shop,
    .footer-contact {
        text-align: center !important;
        align-items: center !important;
    }
    
    .footer-logo {
        justify-content: center !important;
    }
    
    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    #currency-selector {
        top: 70px !important; /* Adjusted for smaller screens */
    }
    
    #currency-panel {
        width: 160px !important;
    }
    
    .hero-text-area h1 {
        font-size: 1.5rem !important;
    }
    
    .hero-text-area p {
        font-size: 0.9rem !important;
    }
    
    .hero-image-gif img {
        max-width: 150px !important;
    }
    
    .row.row-cols-1.row-cols-sm-2.row-cols-md-3 > .col {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
    }
    
    .product-card .card-content {
        height: 120px !important;
    }
    
    .product-card .coin-name-text {
        font-size: 0.6rem !important;
    }
    
    .product-card .buy-coins {
        padding: 2px 5px !important;
        font-size: 0.55rem !important;
    }
    
    .connect-text h2 {
        font-size: 1.2rem !important;
    }
    
    .connect-text p {
        font-size: 0.85rem !important;
    }
    
    .connect-img img {
        max-width: 150px !important;
    }
}

/* For very small devices (below 360px) */
@media screen and (max-width: 360px) {
    .product-card .card-content {
        height: 100px !important;
    }
    
    .product-card .coin-name-text {
        font-size: 0.55rem !important;
    }
    
    .hero-text-area h1 {
        font-size: 1.3rem !important;
    }
}


/* Hide cart panel by default */
.cart-panel,
#cart-panel {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
}

/* Show cart panel when active class is added */
.cart-panel.active,
#cart-panel.active,
.cart-panel.show,
#cart-panel.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Cart overlay */
.cart-overlay,
#cart-overlay {
    display: none !important;
}

.cart-overlay.active,
#cart-overlay.active {
    display: block !important;
}